package com.knowledge.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.knowledge.common.annotation.Excel;
import com.knowledge.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * 主题推送对象 t_push_sub
 *
 * @author zhaoyk
 * @date 2025-11-24
 */
@Data
@TableName(value = "t_push_sub")
@EqualsAndHashCode(callSuper = true)
public class TPushSub extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /**
     * "主题"
     */
    @Excel(name = "主题")
    private String title;
    /**
     * "是否推送"
     */
    @Excel(name = "是否推送")
    private String isPush;

    /**
     * "h5是否推送"
     */
    @Excel(name = "h5是否推送")
    private String h5IsPush;

    /**
     * "用户Id"
     */
    @Excel(name = "用户Id")
    private String userId;
    /**
     * "设备集合"
     */
    @TableField(exist = false)
    private List<TPushDevice> deviceList;

    /**
     * "问题集合"
     */
    @TableField(exist = false)
    private List<TPushQuestion> questionList;
}
